package com.szrt.ms.utils;

import java.util.Scanner;

public class ScannerUtils {
	
	private static Scanner sc = new Scanner(System.in);
	
	public static String getString(){
		System.out.println("请输入字符串格式的数据");
		String jieguo = sc.next();
		return jieguo;
	}
	
	public static double getDouble(){
		System.out.println("请输入double格式的数据");
		double jieguo = sc.nextDouble();
		//sc.close();
		return jieguo;
	}

	
	public static void closeScanner(){
		sc.close();
	}
}
